<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class user_formid extends Model
{
    // 表名
    public $table = 'user_formid';
    public $timestamps = false;
    protected $fillable = [];
    public $primaryKey = "id";

    protected function lastformid($openid)
    {
        return $this->select('id', 'form_id')->where(['openid'=>$openid])->orderBy('id', 'desc')->first();
    }
}
